package org.jeecg.entity.car;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 车位管理
 * @Author: jeecg-boot
 * @Date:   2020-08-26
 * @Version: V1.0
 */
@Data
@TableName("car_port")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="car_port对象", description="车位管理")
public class CarPort extends BaseEntity {
    
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	/**tenantId*/
    @ApiModelProperty(value = "tenantId")
	private String tenantId;
	/**projectId*/
    @ApiModelProperty(value = "projectId")
	private String projectId;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
	private String projectName;
	/**车场*/
    @ApiModelProperty(value = "车场")
	private String parkId;
	/**车场名称*/
	@Excel(name = "车场名称", width = 15)
    @ApiModelProperty(value = "车场名称")
	private String parkName;
	/**车位号*/
	@Excel(name = "车位号", width = 15)
    @ApiModelProperty(value = "车位号")
	private String carportNum;
	/**车位有效期开始时间*/
	@Excel(name = "车位有效期开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "车位有效期开始时间")
	private Date localStartTime;
	/**车位到期日（已缴账单日期）*/
	@Excel(name = "车位到期日（已缴账单日期）", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "车位到期日（已缴账单日期）")
	private Date localEndTime;
	/**入户日期*/
	@Excel(name = "入户日期", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "入户日期")
	private Date checkInTime;
	/**末期账单生成日期*/
	@Excel(name = "末期账单生成日期", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "末期账单生成日期")
	private Date billEndTime;
	/**开始计费日期*/
	@Excel(name = "初始计费日期", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "初始计费日期")
	private Date chargeStartTime;
	/**车位状态*/
    @ApiModelProperty(value = "车位状态")
	@Dict(dicCode = "car_status")
	private Integer status;

	@Excel(name = "车位状态", width = 15)
	@TableField(exist = false)
    private String statusName;
	/*是否AB车（1：是  0：否）*/
	@ApiModelProperty(value = "是否AB车")
	private Integer isAb;

	@Excel(name = "AB车", width = 15)
	@TableField(exist = false)
	private String carPortType;

	/**房间*/
	@ApiModelProperty(value = "roomId")
	private String roomId;
	/**房间名称*/
	@Excel(name = "房间号", width = 15)
	@ApiModelProperty(value = "房间号")
	private String roomName;
	/**楼栋*/
	@ApiModelProperty(value = "floorId")
	private String floorId;
	/**楼栋名称*/
	@Excel(name = "楼栋", width = 15)
	@ApiModelProperty(value = "楼栋")
	private String floorName;
	/**收费项目id*/
	@ApiModelProperty(value = "itemId")
	private String itemId;
	/**收费项目名称*/
	@Excel(name = "收费项目", width = 15)
	@ApiModelProperty(value = "itemName")
	private String itemName;
	/**计算精度 0:元1：角 2：分*/
	@Dict(dicCode = "unit_account")
	@ApiModelProperty(value = "计费精度")
	private Integer unitAccount;
	@TableField(exist = false)
	@Excel(name = "计费精度", width = 15)
	private String unitAccountName;
	/**单价*/
	@Excel(name = "单价", width = 15)
	@ApiModelProperty(value = "单价")
	private BigDecimal price;

	/**createBy*/
    @ApiModelProperty(value = "createBy")
	private String createBy;
	/**createDate*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createDate")
	private Date createTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
	private String updateBy;
	/**updateDate*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateDate")
	private Date updateTime;
	/**delFlag*/
    @ApiModelProperty(value = "delFlag")
	private String delFlag;
	/**remarks*/
    @ApiModelProperty(value = "remarks")
	private String remarks;
}
